package com.mew.common.entity.events;


import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.util.Date;


@TableName("e_sign")
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Sign {

    @TableId("user_id")
    private Long userId;
    @TableField("start_date")
    private Date startDate;
    @TableField("sign_info")
    private String signInfo;

    @TableField("a_status")
    private Integer aStatus;
    @TableField("b_status")
    private Integer bStatus;
    @TableField("c_status")
    private Integer cStatus;
    @TableField("d_status")
    private Integer dStatus;

    public void init(){
        this.startDate = DateUtil.parse(DateUtil.format(new Date(), "yyyyMM") + "01","yyyyMMdd");
        this.aStatus = 0;
        this.bStatus = 0;
        this.cStatus = 0;
        this.dStatus = 0;
    }

}
